Release 10.1A: OpenEdge Data Management:
SQL Development
Revoking privileges
The
REVOKEstatement can be used for a wide variety of purposes. It can revoke a single user’s access to a single column or it can revoke the public’s privilege to access an entire database.Privileges are revoked in the same manner in which they are granted—database-wide or table-specific.
The syntax for using the
REVOKEstatement to revoke database-wide privileges is:
Notes: Only the user who granted an audit-related privilege can revoke it.
CASCADEis not supported for the revocation of audit-related privileges.The syntax for using the
REVOKEstatement to revoke table-specific privileges is:
The
REVOKEstatement can be used to remit the privileges previously granted to 'GPS', as shown in Example 4–7.
If the
REVOKEstatement specifiesRESTRICT, SQL checks to see if the privilege being revoked was passed on to other users. This is possible only if the original privilege included theWITH GRANT OPTIONclause. If so, theREVOKEstatement fails and generates an error. If the privilege was not passed on, theREVOKEstatement succeeds.If the
REVOKEstatement specifiesCASCADE, revoking the access privileges from a user also revokes the privileges from all users who received the privilege from that user.If the
REVOKEstatement specifies neitherRESTRICTnorCASCADE, the behavior is the same as forCASCADE.For detailed information on the
REVOKEstatement, see OpenEdge Data Management: SQL Reference .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |